package com.gqzmy.springboot3.vo;

import com.gqzmy.springboot3.constant.RegexExpressionPool;
import jakarta.validation.constraints.Pattern;

/**
 * @author 周小哥  gqzmy@163.com 2023/4/24 17:24
 */

public record LoginUser(
        @Pattern(regexp = RegexExpressionPool.ACCOUNT, message = "账号: " + RegexExpressionPool.ACCOUNT_MESSAGE)
        String userAccount,
        @Pattern(regexp = RegexExpressionPool.PASSWORD, message = "密码: " + RegexExpressionPool.PASSWORD_MESSAGE)
        String password) {
}
